package com.gqemf.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author chan
 */
@Data
@ToString
@EqualsAndHashCode
@Entity
@Table(name = "emf_history_new")
public class Emfhistory extends AbstractAuditBase{
    @Column(name = "date_time")
    private String dateAndTime;

    @Column(name = "emf")
    private String emf;

    @Column(name = "ef")
    private String ef;

    @Column(name = "mv_m2")
    private String rfPowerDensityMVm2;

    @Column(name = "mv_cm2")
    private String rfPowerDensityMVcm2;

    @Column(name = "pw_cm2")
    private String rfPowerDensityPWcm2;

    @Column(name = "possible_source")
    private String possibleSource;

    public Emfhistory(EmfHistoryTemp emfHistoryTemp) {
        this.dateAndTime = emfHistoryTemp.getDatetime();
        this.emf = emfHistoryTemp.getMG();
        this.ef = emfHistoryTemp.getVM();
        this.rfPowerDensityMVm2 = emfHistoryTemp.getMWm2();
        this.rfPowerDensityMVcm2 = emfHistoryTemp.getMWcm2();
        this.rfPowerDensityPWcm2 = emfHistoryTemp.getPWcm2();
        this.possibleSource = emfHistoryTemp.getPossibleSource();
    }

    public Emfhistory() {

    }
}
